package com.zonski.jbots.game.entity;

import com.zonski.jbots.engine.Engine;
import com.zonski.jbots.engine.Modes;
import com.zonski.jbots.engine.entity.AbstractMind;
import com.zonski.jbots.engine.entity.Mind;

public class TempRockMind extends AbstractMind
{
    private static final int DEATH_TIME = 10;
    public TempRockMind()
    {
    }

    public void update(Engine engine)
    {
        if(this.getEntity().getMode() == Modes.DEAD)
        {
            if(this.getEntity().getEffectiveModeUpdates() > DEATH_TIME)
            {
                this.getEntity().setRemovable(true);
            }
        }
    }

    public Mind copy()
    {
        return new TempRockMind();
    }
}
